package com.souyun.serverblogapi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


// http://localhost:9090

@Controller
public class BaseController {

    @RequestMapping(value = "/")
    @ResponseBody
    public String welcome(ModelMap model) {
        return "Hello, I am server blog api!!!";
    }
}